-
Notifications
You must be signed in to change notification settings - Fork 78
SSM wrapper #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
SSM wrapper #357
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added wrappers folder. Added Mamba SummaryNetwork wrapper. Added necessary __init__ files.
Added MambaSSM docstring.
Added try-catch for Mamba import to remove hard dependence. Added docstring for MambaSSM. Added custom parameters for MambaSSM.
Removed (temp) serializable decorator and import from MambaSSM. Added mamba_version arg to MambaSSM constructor. Added mamba_blocks arg to MambaSSM constructor. Reordered args in MambaSSM constructor. Updated docstring for MambaSSM. Added block generation and version handling to MambaSSM wrapper. Updated LV benchmark docstring.
Added necessary device spec to Mamba generator.
Added activation between Mamba blocks.
Switched ReLU to Sigmoid activation. ReLU caused exploding gradients
Switched activation to softplus
Switched activation to log1exp
Removed activations. Added dt_min, dt_max args
Fixed py syntax error
Added LayerNorm to Mamba blocks
Reorder layerNorm and SSM operation
Added soft scaling after mamba pass
Replaced generator with specific mamba constructors due to new input args. Added new hidden ssm dim arg.
Removed mamba2 support due to instability
Removed file that will be later renamed on dev
Codecov ReportAttention: Patch coverage is
|
Updated mamba block init for linting rules
Contributor
|
Great, Chase! Can you merge dev into your branch and make sure the tests are running. Also, no need to change the SIR notebook (revert to default), since we will take one of your upcoming notebooks as an example. |
Contributor
|
Implemented as we did in the project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements a wrapper to run a Mamba SummaryNetwork with BayesFlow
https://github.com/state-spaces/mamba